package tools;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import entitybean.oc_property_tools_ice.EntityBean_Oc_Property_Tools_Ice;

public class InterfacePropertyToolsIceList {
	public List<EntityBean_Oc_Property_Tools_Ice> ViewOc_News(ResultSet rs)
	{
		
		List<EntityBean_Oc_Property_Tools_Ice>list =new ArrayList<EntityBean_Oc_Property_Tools_Ice>();
		try {
			Integer i=1;
			while(rs.next())
			{
				
				EntityBean_Oc_Property_Tools_Ice viewoc_news=new EntityBean_Oc_Property_Tools_Ice();
				viewoc_news.setDef(rs.getString("def"));
				viewoc_news.setPid(rs.getInt("pid"));
				viewoc_news.setTools_name(rs.getString("tools_name"));
				viewoc_news.setId(Integer.valueOf(rs.getString("ID")));
				list.add(viewoc_news);
				i=i+1;
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
		
	}
}
